







<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so search-form">
            <input type="text" name="search_data"  placeholder="庄家名称|用户名" autocomplete="off" value="{:input('search_data')}"  class="layui-input">
         
            <button class="layui-btn"  id="search"  url="{:url('AppcanAccountList')}"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>

        </form>
    </div>
    <xblock>
        <!--<button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>-->
    
        <span class="x-right" style="line-height:40px;margin-right:10px;">共有数据：{$list.count} 条</span>

    </xblock>
    <hr/>

    <table class="layui-table x-admin">
        <thead>
        <tr>
            <th>
                序号
            </th>
            <th>会员基础信息</th>
            <th>账户余额信息</th>
            <th>渠道应用信息</th>
            <th>渠道应用明细</th>
            <th>账变信息</th>
            <th>状态</th>
        </thead>
        {notempty name='list.list'}
        <tbody>
        {volist name='list.list' id='vo' key="k"}
        <tr>
            <td >
                {$k}
            </td>
            <td >
                <div><label>会员账号:</label><span>{$vo.username}{if condition ="$vo.is_company eq 1"}<span style="color: #f56c6c">(公司账户)</span>{/if}</span></div>
                <div> <label>手机号码:</label><span>{$vo.mobile}</span></div>
                <div>  <label>是否赌王:</label><span>{if condition='$vo.is_king eq 1'}是{else/}否{/if}</span></div>
                <div>  <label>是否委托下注:</label><span>{if condition='$vo.entrust_count gt 0'}是{else/}否{/if}</span></div>
                <div> <label>是否商家:</label><span>{if condition='$vo.is_shop eq 1'}是{else/}否{/if}</span></div>

            </td>
            <td >
                <div><label>总包余额:</label><span>{$vo.user->block_wallet(1)['balance']}</span></div>
                <div> <label>理财包余额:</label><span>{$vo.user->block_wallet(3)['balance']}</span></div>
            </td>
            <td >
                <div><label>应用名称:</label><span>{$vo.name}</span></div>
                <div> <label>返点:</label><span>{$vo.king_number}</span></div>
                <div> <label>赔率:</label><span>  {$vo.bets.odds}</span></div>
                <div> <label>下注账号:</label><span>  {$vo.bet_username}</span></div>
                <div> <label>备注描述:</label><span>  {$vo.remark}</span></div>
            </td>
            <td >
                <div><label>游戏种类:</label><span>{$vo.bets.lottery.name}</span></div>
                <div> <label>游戏玩法:</label><span>{if condition="$vo.bets.is_old eq 1"}{$vo.bets.play.playcate.name}-{$vo.bets.play.name}{else/}{$vo.bets.play.name}{/if}</span></div>
                <div> <label>下注号码:</label><span> {if condition="$vo.bets.inverse_code eq true"}{$vo.bets.inverse_code} {else/}{$vo.bets.number}{/if}</span></div>
                <div> <label>下注金额:</label><span> {$vo.number}</span></div>
            </td>
            <td >
                <div><label>货币扣款类型:</label><span>{$vo.type_text}</span></div>
                <div><label>创建时间:</label><span>{$vo.create_time}</span></div>
            </td>

            <td >
              {if condition="$vo.state eq 1"}下注成功{else/}下注失败{/if}
            </td>

        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12"  valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list.list'}   {$list.list->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        layer=layui.layer;
        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });








    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>

</body>

</html>




